﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BruteForceSerializer.Contract;
using BruteForceSerializer.Formatting;
using BruteForceSerializer.Normalization;

namespace BruteForceSerializer
{
    public class Serializer : ISerializer
    {
        public string Serialize(object objectGraphRoot)
        {
            var normalizedObject = Normalizer.Normalize(objectGraphRoot);
            return Formatter.Format(normalizedObject, true);
        }
    }
}
